<?php

namespace App\Models;

use Illuminate\Foundation\Auth\User;
use Illuminate\Support\Facades\Hash;

class Member extends User
{
    protected $guarded = ['id'];

    protected $table = 'members';


    public function setPasswordAttribute($value)
    {
        $this->attributes['password'] = Hash::make($value);
    }

    protected $hidden = [
        'password', 'remember_token',
    ];
}
